//
//  SPSettingTableViewCell.m
//  panzer
//
//  Created by 还带大道 on 2018/10/20.
//  Copyright © 2018年 还带大道. All rights reserved.
//

#import "SPSettingTableViewCell.h"
#import "SPCommon.h"

@interface SPSettingTableViewCell()
@property (weak, nonatomic) IBOutlet UIView *bgView;

@end

@implementation SPSettingTableViewCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.contentView.backgroundColor = RZ_COLOR(245, 245, 245);
    self.bgView.backgroundColor = [UIColor whiteColor];
    
    _bgView.layer.shadowColor = RZ_COLOR_ALPHA(213, 213, 213, 0.5).CGColor;
    _bgView.layer.cornerRadius = 4;
    _bgView.layer.shadowOffset = CGSizeMake(0,1);//shadowOffset阴影偏移,x向右偏移，y向下偏移，默认(0, -3)
    _bgView.layer.shadowOpacity = 1;//阴影透明度，默认0
    _bgView.layer.shadowRadius = 8;//阴影半径，默认3
}


- (IBAction)btnOnClick:(UIButton *)btn {
    btn.selected = !btn.isSelected;
}

@end
